<template>
  <view class="layout">
    <scroll-view scrol-y="true" class="scroll" ref='scroll'>
      <view></view>
    </scroll-view>
    <life-demo v-if="show"></life-demo>
  </view>
</template>

<script setup>
  import { ref, computed, onMounted } from 'vue'
  const scroll = ref(null)
  const show = ref(true)
  onMounted(() => {
    console.log(scroll.value)
  })

  setTimeout(() => {
    show.value = false
  }, 2000)
</script>

<style lang="scss" scoped>

</style>